/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GoodsBean;

import DBConnection.ATeamObject;
import java.rmi.RemoteException;
import java.util.Collection;
import javax.ejb.CreateException;
import javax.ejb.EJBHome;
import javax.ejb.FinderException;

/**
 *
 * @author XPYCT
 */
public interface GoodsHome extends EJBHome {
    
    public Goods create(ATeamObject ato)
            throws CreateException, RemoteException;
    
    public Collection findAllGoods()
            throws FinderException, RemoteException;
    
    public Collection findAllByCategoryId(ATeamObject ato)
            throws FinderException, RemoteException;
    
    public Collection findAllByManufacturerId(ATeamObject ato)
            throws FinderException, RemoteException;
    
    public Collection findByAllCriteria(ATeamObject ato)
            throws FinderException, RemoteException;
    
    public Goods findByPrimaryKey(Integer primaryKey)
            throws FinderException, RemoteException;
    
    public Collection findByNameEquals(ATeamObject ato)
            throws FinderException, RemoteException;
    
    public Collection findByPriceEquals(ATeamObject ato)
            throws FinderException, RemoteException;
        
}
